package com.coffee.order.api.sku.service;

import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;
import com.coffee.order.api.sku.query.OrderRelationQuery;
import com.coffee.order.api.sku.result.OrderRelationResult;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface OrderRelationService {

	Page<OrderRelationResult> getPager(OrderRelationQuery param, PagerInfo pr);
	
	Integer count(OrderRelationQuery param);
	
	OrderRelationResult getDetail(Integer id);
	
	List<OrderRelationResult> getList(OrderRelationQuery param, PagerInfo pr);
	
	List<OrderRelationResult> getList(OrderRelationQuery param);
	
	List<OrderRelationResult> getList();

	void delete(Integer id);

	void addOrUpdate(OrderRelationResult result)throws BusinessException;
	
	Map<Integer,OrderRelationResult> getItemMap(Set<Integer> idSet);
	
	Map<Integer,OrderRelationResult> getItemMap();
	
}